import request from '@/utils/request'

// 查询交易市场手续费分红用户列表
export function listMallMarketServicePerson(query) {
  return request({
    url: '/mall/mallMarketServicePerson/list',
    method: 'get',
    params: query
  })
}

// 查询交易市场手续费分红用户详细
export function getMallMarketServicePerson(id) {
  return request({
    url: '/mall/mallMarketServicePerson/' + id,
    method: 'get'
  })
}

// 新增交易市场手续费分红用户
export function addMallMarketServicePerson(data) {
  return request({
    url: '/mall/mallMarketServicePerson',
    method: 'post',
    data: data
  })
}

// 修改交易市场手续费分红用户
export function updateMallMarketServicePerson(data) {
  return request({
    url: '/mall/mallMarketServicePerson',
    method: 'put',
    data: data
  })
}

// 删除交易市场手续费分红用户
export function delMallMarketServicePerson(id) {
  return request({
    url: '/mall/mallMarketServicePerson/' + id,
    method: 'delete'
  })
}
